<style type="text/css">
    .modal-lg {
        width: 90%;
    }
    .thWidthAndHeight{width:100px; height:20px;}
</style>
<div class="modal-header width90">
    <h4 class="modal-title">设置团期</h4>
</div>

<div class="modal-body width90">
    <div class="col-sm-11" align="right">
                <div style="margin-top: 9px;margin-right: 20px">
                    销售状态：
                    <select name="" id="" style="width: 100px;height: 26px" ng-model="setgroupdate" >
                        <option value="">未选择</option>
                        <option value="0">正在销售</option>
                        <option value="1">已停售</option>
                    </select>
                </div>
        </div>
        <div class="col-sm-1" style="padding-left:0px" >
                <div style="margin-top: 5%;margin-right: 10px;">
                 <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="search()">搜索</button>
                 </div>
        </div>
    <div class="container-fluid form-horizontal ">
        <div class="panel panel-default">
            <table  class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" style="display: table; width: 100%;table-layout:fixed;">
                <thead>
                    <tr>
                        <th class="text-center " >
                            <div style="padding-bottom:10px">
                                    团期
                            </div>
                        </th>
                        <th class="text-center ">成人结算价<br>成人销售价</th>
                        <th class="text-center ">儿童结算价<br>儿童销售价</th>
                        <th class="text-center " style="width:100px">单房差结算价<br>单房差销售价</th>                                             
                        <th class="text-center ">
                            <div style="padding-bottom:10px">
                                    提前预定
                            </div>
                        </th>
                        <th class="text-center " >
                            <div style="padding-bottom:10px">
                                    退改类型
                            </div>
                        </th>
                        <th class="text-center ">
                            <div style="padding-bottom:10px">
                                    库存类型
                            </div>
                        </th>                        
                        <th class="text-center ">
                            <div style="padding-bottom:10px">
                                    剩余库存
                            </div>
                        </th>
                        <th class="text-center " >
                            <div style="padding-bottom:10px">
                                    库存总量
                            </div>
                        </th>
                        <th class="text-center ">
                            <div style="padding-bottom:10px">
                                    销售状态
                            </div>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in a" >
                        <td class="text-center" >

                            <div style="padding-top: 10%;">
                                    {{item.tour_date}}
                            </div>
                        </td>
                        <td class="text-center">
                            <div ng-if="item.adultbanno">
                                {{item.adult_call_price}}<br> {{item.adult_sale_price}}
                            </div>
                            <div ng-if="item.adultbanyes">
                                <div style="padding-top: 10%;">
                                    {{item.adult_ban}}
                                </div>
                            </div>
                        </td>
                        <td class="text-center">
                            <div ng-if="item.childrenbanno">
                                {{item.children_call_price}}<br> {{item.children_sale_price}}
                            </div>
                            <div ng-if="item.childrenbanyes">
                                <div style="padding-top: 10%;">
                                    {{item.children_ban}}
                                </div>
                            </div>
                        </td>
                        <td class="text-center">
                            <div ng-if="item.single_roombanno">
                                {{item.single_room_call_price}}<br> {{item.single_room_sale_price}}
                            </div>
                            <div ng-if="item.single_roombanyes">
                                <div style="padding-top: 10%;">
                                     {{item.single_room_ban}}
                                </div>
                            </div>
                        </td>
                                               
                        <td class="text-center">
                            <div style="padding-top: 10%;">
                                    {{item.materials_advance_reserve_day}}天{{item.materials_advance_reserve_hour}}时{{item.materials_advance_reserve_minute}}分
                            </div>
                        </td>
                        <td class="text-center" >
                            <div style="padding-top: 10%;">
                                    {{item.back_rule_type}}
                            </div>
                        </td>
                        <td class="text-center">

                            <div style="padding-top: 10%;">
                                    {{item.stock_type}}
                            </div>
                        </td>
                        <td class="text-center" >
                            <div style="padding-top: 10%;">
                                <div ng-if="item.stocknoshowzero">
                                    {{item.stock}}
                                </div>                                                                     
                            </div>
                        </td>
                        <td class="text-center" >
                            <div style="padding-top: 10%;">
                                    <div ng-if="item.stockstt">
                                        <input type="number" ng-model="item.stock_totals" style="width: 60px" min="0">
                                    </div>
                                     
                            </div>
                        </td>
                        <td class="text-center">
                            <div style="margin-top:5px;">
                                <button class="{{item.btncolor}}" ng-click=setgroup01(item)
                                style="width:70px;height:30px;padding-left: 6%;padding-top:4px" >
                                    {{item.close_group}}
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="text-right">
        <pagination
            total-items="totalItems"
            ng-model="currentPage"
            ng-change="pageChanged()"
            previous-text="上一页"
            next-text="下一页"
            first-text="首页"
            last-text="尾页"
            max-size="5"
            boundary-links="true"
            rotate="false"
            items-per-page="itemsPerPage"
            class="m-t-none m-b"></pagination>
     </div>
</div>
<div class="modal-footer width90">   
     <button class="btn m-b-xs w-xs btn-success btn-rounded" type="button" ng-click="ok()" style="margin-top: 6px">保存</button> 
     <button class="btn m-b-xs w-xs btn-success btn-rounded" type="button" ng-click="cancel()" >关闭</button>
</div>